#include <QtCore>
#include <QtDebug>

int main( int argc, char** argv )
{
	QCoreApplication app( argc, argv );
	double d = 3.1415;

	QString str1 = QString("pi = %1").arg( d );
	QString str2; str2.sprintf("pi = %lf", d );
	QVariant v( d );
	QString str3 = v.toString();
	QString str4 = QString::number( d );
	
	qDebug() << str1 << str2 << str3 << str4;

	return 0;
}


